package app.area;

public abstract class AbstractArea implements IArea {
    
    protected boolean inInterval (float x, float x1, float x2) {
        return Math.min(x1, x2) <= x && x <= Math.max(x1, x2);
    }
    
    protected boolean inBox (float x, float y, float x1, float y1, float x2, float y2) {
        return inInterval (x, x1, x2) && inInterval (y, y1, y2);
    }
    
}
